package com.business.bg.wyc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.business.bg.wyc.bean.Employee;
import com.business.bg.wyc.dao.EmployeeDao;
import com.business.core.wyc.service.base.AbstractService;

@Service
@Transactional( readOnly = true )
public class EmployeeService extends AbstractService<Employee, Long>
{
	
	private EmployeeDao	employeeDao;
	
	@Override
	protected Class<Employee> getClassType()
	{
		return Employee.class;
	}
	
	public EmployeeDao getEmployeeDao()
	{
		return employeeDao;
	}
	
	@Autowired
	public void setEmployeeDao( EmployeeDao employeeDao )
	{
		super.setCommonDao(employeeDao);
		this.employeeDao = employeeDao;
	}
	
}
